const fs = require("fs");
const dotenv = require("dotenv");

if (!fs.existsSync(".env")) {
  const sample = fs.readFileSync(".env.sample");
  fs.writeFileSync(".env", sample);
  console.log(".env init");
}

dotenv.config();

export const isDev = !process.env.PORT;

export const jwtSecret = process.env.JWT_KEY;
